package com.ljf.task.dto.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.validation.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 任务列表--设计新增修改  task_dat_task_tabulation
 *
 * @author LJF
 * @since 2025-07-23
 */
@Data
@ApiModel("任务列表--设计新增修改")
public class TaskDatTaskTabulationDesignCommand implements Serializable {

    @JsonProperty("id")
    @ApiModelProperty(value = "ID")
    @NotNull(message = "ID不能为空", groups = UpdateGroup.class)
    private Long id;

    @Valid
    @JsonProperty("databaseProcessingList")
    @ApiModelProperty(value = "数据库处理明细")
    private List<TaskDatTaskDetailCommand> databaseProcessingList;

    @Valid
    @JsonProperty("frontEndDevelopmentList")
    @ApiModelProperty(value = "前端开发明细")
    private List<TaskDatTaskDetailCommand> frontEndDevelopmentList;

    @Valid
    @JsonProperty("backendDevelopmentList")
    @ApiModelProperty(value = "后端开发明细")
    private List<TaskDatTaskDetailCommand> backendDevelopmentList;

}
